<?php

namespace App\Service\GuildManage;

use App\Constants\ErrorCode;
use App\Exception\ApiException;

class AddAlipayService
{
    public $alipay;

    public function addAccount(): string
    {
        if (empty($this->alipay)) {
            throw new ApiException('请输入支付宝账号', ErrorCode::DEFAULT_ERROR);
        }

        return $this->alipay;
    }
}